<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Macros</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__cordic__macros.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">API Reference</a> &#124;
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">Macros<div class="ingroups"><a class="el" href="group__group__cordic.html">CORDIC       (Coordinate Rotation Digital Computer)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
API Reference</h2></td></tr>
<tr class="memitem:group__group__cordic__macros__callback__events"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros__callback__events.html">CORDIC Callback Events</a></td></tr>
<tr class="memdesc:group__group__cordic__macros__callback__events"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macros to check CORDIC events passed by <a class="el" href="group__group__cordic__data__structures.html#ga7c5dd9793ccddd4e245551ec710866e7">cy_cb_cordic_handle_events_t</a> callback. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga9d1c06dd4ecf1684a98485025464f03d"><td class="memItemLeft" align="right" valign="top"><a id="ga9d1c06dd4ecf1684a98485025464f03d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#ga9d1c06dd4ecf1684a98485025464f03d">CY_CORDIC_DRV_VERSION_MAJOR</a>&#160;&#160;&#160;2U</td></tr>
<tr class="memdesc:ga9d1c06dd4ecf1684a98485025464f03d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The driver major version. <br /></td></tr>
<tr class="separator:ga9d1c06dd4ecf1684a98485025464f03d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacc308214271c25df34bb94399099ff1b"><td class="memItemLeft" align="right" valign="top"><a id="gacc308214271c25df34bb94399099ff1b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gacc308214271c25df34bb94399099ff1b">CY_CORDIC_DRV_VERSION_MINOR</a>&#160;&#160;&#160;10U</td></tr>
<tr class="memdesc:gacc308214271c25df34bb94399099ff1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The driver minor version. <br /></td></tr>
<tr class="separator:gacc308214271c25df34bb94399099ff1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf57db54da97c0e5341e94186c39c5494"><td class="memItemLeft" align="right" valign="top"><a id="gaf57db54da97c0e5341e94186c39c5494"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gaf57db54da97c0e5341e94186c39c5494">CY_CORDIC_ID</a>&#160;&#160;&#160;<a class="el" href="group__group__syslib__macros__status__codes.html#ga45c44ce91d1e20c64430f00fd8ad9b0e">CY_PDL_DRV_ID</a>(0x63U)</td></tr>
<tr class="memdesc:gaf57db54da97c0e5341e94186c39c5494"><td class="mdescLeft">&#160;</td><td class="mdescRight">The CORDIC driver ID. <br /></td></tr>
<tr class="separator:gaf57db54da97c0e5341e94186c39c5494"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf34936eeba9449523dc66d42b5ee3fbc"><td class="memItemLeft" align="right" valign="top"><a id="gaf34936eeba9449523dc66d42b5ee3fbc"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gaf34936eeba9449523dc66d42b5ee3fbc">CY_CORDIC_CIRCULAR_GAIN</a>&#160;&#160;&#160;(0x4DBA76U)</td></tr>
<tr class="memdesc:gaf34936eeba9449523dc66d42b5ee3fbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reciprocal of Circular gain in CY_CORDIC_CIRCULAR_GAIN format ((2^23)/1.646760258121) <br /></td></tr>
<tr class="separator:gaf34936eeba9449523dc66d42b5ee3fbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8d328d4d7b8cc1543c48787a6be46f3"><td class="memItemLeft" align="right" valign="top"><a id="gad8d328d4d7b8cc1543c48787a6be46f3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gad8d328d4d7b8cc1543c48787a6be46f3">CY_CORDIC_HYPERBOLIC_GAIN</a>&#160;&#160;&#160;(0x4D47A1U)</td></tr>
<tr class="memdesc:gad8d328d4d7b8cc1543c48787a6be46f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reciprocal of Hyperbolic gain in CY_CORDIC_HYPERBOLIC_GAIN format ((2^22)/0.828159360960) <br /></td></tr>
<tr class="separator:gad8d328d4d7b8cc1543c48787a6be46f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad2839551a34b0eca67a79ce5cccb5e5b"><td class="memItemLeft" align="right" valign="top"><a id="gad2839551a34b0eca67a79ce5cccb5e5b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gad2839551a34b0eca67a79ce5cccb5e5b">CY_CORDIC_Q15_SCALING_FACTOR</a>&#160;&#160;&#160;(39568UL)</td></tr>
<tr class="memdesc:gad2839551a34b0eca67a79ce5cccb5e5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scaling factor : ((2^15) / 0.828159360960), where 0.828159360960 is the hyperbolic gain. <br /></td></tr>
<tr class="separator:gad2839551a34b0eca67a79ce5cccb5e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c34e17c9edfb4dfa3fc017beb5ce597"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#ga3c34e17c9edfb4dfa3fc017beb5ce597">CY_CORDIC_IS_OPERATING_MODE_VALID</a>(<a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)</td></tr>
<tr class="memdesc:ga3c34e17c9edfb4dfa3fc017beb5ce597"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is operating mode valid.  <a href="#ga3c34e17c9edfb4dfa3fc017beb5ce597">More...</a><br /></td></tr>
<tr class="separator:ga3c34e17c9edfb4dfa3fc017beb5ce597"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5460acfaa57575af98cede3117f528ae"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#ga5460acfaa57575af98cede3117f528ae">CY_CORDIC_IS_ROTVEC_MODE_VALID</a>(<a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)</td></tr>
<tr class="memdesc:ga5460acfaa57575af98cede3117f528ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is rotvec mode valid.  <a href="#ga5460acfaa57575af98cede3117f528ae">More...</a><br /></td></tr>
<tr class="separator:ga5460acfaa57575af98cede3117f528ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd3fd754ccac8d4245343297acd97490"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gabd3fd754ccac8d4245343297acd97490">CY_CORDIC_IS_CIRCULAR_ROTATION_ANGLE_VALID</a>(angle)</td></tr>
<tr class="memdesc:gabd3fd754ccac8d4245343297acd97490"><td class="mdescLeft">&#160;</td><td class="mdescRight">In circular function, |angle_in_radians| is less than or equal to integer value representing 1.74 radians; The 1.74 angle in radians is mapped to the integer value(4646111) using: ((angle * ((2^23)/pi)) &lt;&lt; 8)  <a href="#gabd3fd754ccac8d4245343297acd97490">More...</a><br /></td></tr>
<tr class="separator:gabd3fd754ccac8d4245343297acd97490"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c3a51ad503bc0d06d194d8f0d3d2674"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#ga6c3a51ad503bc0d06d194d8f0d3d2674">CY_CORDIC_IS_TAN_ANGLE_VALID</a>(angle)</td></tr>
<tr class="memdesc:ga6c3a51ad503bc0d06d194d8f0d3d2674"><td class="mdescLeft">&#160;</td><td class="mdescRight">Angle range for Tangent operation [(-2^23) / 2, (2^23 - 1) / 2].  <a href="#ga6c3a51ad503bc0d06d194d8f0d3d2674">More...</a><br /></td></tr>
<tr class="separator:ga6c3a51ad503bc0d06d194d8f0d3d2674"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace3e3619336e1eba61d6210a7a91eee9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gace3e3619336e1eba61d6210a7a91eee9">CY_CORDIC_IS_HYPERBOLIC_ROTATION_ANGLE_VALID</a>(angle)</td></tr>
<tr class="memdesc:gace3e3619336e1eba61d6210a7a91eee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">In hyperbolic function, |angle_in_radians| is less than or equal to integer value representing 1.11 radians; The 1.11 angle in radians is mapped to the integer value(2963898) using: ((angle * ((2^23)/pi)) &lt;&lt; 8)  <a href="#gace3e3619336e1eba61d6210a7a91eee9">More...</a><br /></td></tr>
<tr class="separator:gace3e3619336e1eba61d6210a7a91eee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7a970e56dce2c05be16f28479829638"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#gaf7a970e56dce2c05be16f28479829638">CY_CORDIC_IS_INPUT_VALID</a>(x)</td></tr>
<tr class="memdesc:gaf7a970e56dce2c05be16f28479829638"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is input within the range [(-2^23), (2^23 - 1)] for vectoring mode operations.  <a href="#gaf7a970e56dce2c05be16f28479829638">More...</a><br /></td></tr>
<tr class="separator:gaf7a970e56dce2c05be16f28479829638"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47fdb8d4b4d0d10340f29818a98d690d"><td class="memItemLeft" align="right" valign="top"><a id="ga47fdb8d4b4d0d10340f29818a98d690d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__cordic__macros.html#ga47fdb8d4b4d0d10340f29818a98d690d">CY_CORDIC_NUMBER_OF_ITERATIONS</a>&#160;&#160;&#160;(7U)</td></tr>
<tr class="memdesc:ga47fdb8d4b4d0d10340f29818a98d690d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of cordic iterations. <br /></td></tr>
<tr class="separator:ga47fdb8d4b4d0d10340f29818a98d690d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga3c34e17c9edfb4dfa3fc017beb5ce597"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c34e17c9edfb4dfa3fc017beb5ce597">&#9670;&nbsp;</a></span>CY_CORDIC_IS_OPERATING_MODE_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_OPERATING_MODE_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((<a class="code" href="group__group__cordic__enumerated__types.html#ggad5a6b04217e28397cacc7afd7c0ceae6aced5744f4bc74e39bc41c0d7eba8a0e9">CY_CORDIC_OPERATING_MODE_CIRCULAR</a>  == (<a class="code" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)) || \</div><div class="line">                                                       (<a class="code" href="group__group__cordic__enumerated__types.html#ggad5a6b04217e28397cacc7afd7c0ceae6a1d56e3bb611739ccd2780148ea8f5f93">CY_CORDIC_OPERATING_MODE_HYPERBOLIC</a> == (<a class="code" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)))</div><div class="ttc" id="group__group__cordic__enumerated__types_html_ggad5a6b04217e28397cacc7afd7c0ceae6a1d56e3bb611739ccd2780148ea8f5f93"><div class="ttname"><a href="group__group__cordic__enumerated__types.html#ggad5a6b04217e28397cacc7afd7c0ceae6a1d56e3bb611739ccd2780148ea8f5f93">CY_CORDIC_OPERATING_MODE_HYPERBOLIC</a></div><div class="ttdoc">Hyperbolic Operating Mode. </div><div class="ttdef"><b>Definition:</b> cy_cordic.h:278</div></div>
<div class="ttc" id="group__group__cordic__enumerated__types_html_ggad5a6b04217e28397cacc7afd7c0ceae6aced5744f4bc74e39bc41c0d7eba8a0e9"><div class="ttname"><a href="group__group__cordic__enumerated__types.html#ggad5a6b04217e28397cacc7afd7c0ceae6aced5744f4bc74e39bc41c0d7eba8a0e9">CY_CORDIC_OPERATING_MODE_CIRCULAR</a></div><div class="ttdoc">Circular Operating Mode. </div><div class="ttdef"><b>Definition:</b> cy_cordic.h:277</div></div>
<div class="ttc" id="group__group__ipc__bt__data__structures_html_ga37e90f5e3bd99fac2021fb3a326607d4"><div class="ttname"><a href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a></div><div class="ttdeci">uint16_t mode</div><div class="ttdoc">IO config mode. </div><div class="ttdef"><b>Definition:</b> cy_ipc_bt.h:616</div></div>
</div><!-- fragment -->
<p>Is operating mode valid. </p>

</div>
</div>
<a id="ga5460acfaa57575af98cede3117f528ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5460acfaa57575af98cede3117f528ae">&#9670;&nbsp;</a></span>CY_CORDIC_IS_ROTVEC_MODE_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_ROTVEC_MODE_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((<a class="code" href="group__group__cordic__enumerated__types.html#ggab0ae20176166f2197fb701266a119e20af7901b9ce5b2a112a7e31b05c17f99e0">CY_CORDIC_ROTVEC_MODE_VECTORING</a>  == (<a class="code" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)) || \</div><div class="line">                                                       (<a class="code" href="group__group__cordic__enumerated__types.html#ggab0ae20176166f2197fb701266a119e20a3af175521f97a998b75da426ccfe9fd1">CY_CORDIC_ROTVEC_MODE_ROTATION</a> == (<a class="code" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)))</div><div class="ttc" id="group__group__cordic__enumerated__types_html_ggab0ae20176166f2197fb701266a119e20af7901b9ce5b2a112a7e31b05c17f99e0"><div class="ttname"><a href="group__group__cordic__enumerated__types.html#ggab0ae20176166f2197fb701266a119e20af7901b9ce5b2a112a7e31b05c17f99e0">CY_CORDIC_ROTVEC_MODE_VECTORING</a></div><div class="ttdoc">Vectoring Mode. </div><div class="ttdef"><b>Definition:</b> cy_cordic.h:284</div></div>
<div class="ttc" id="group__group__cordic__enumerated__types_html_ggab0ae20176166f2197fb701266a119e20a3af175521f97a998b75da426ccfe9fd1"><div class="ttname"><a href="group__group__cordic__enumerated__types.html#ggab0ae20176166f2197fb701266a119e20a3af175521f97a998b75da426ccfe9fd1">CY_CORDIC_ROTVEC_MODE_ROTATION</a></div><div class="ttdoc">Rotation Mode. </div><div class="ttdef"><b>Definition:</b> cy_cordic.h:285</div></div>
<div class="ttc" id="group__group__ipc__bt__data__structures_html_ga37e90f5e3bd99fac2021fb3a326607d4"><div class="ttname"><a href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a></div><div class="ttdeci">uint16_t mode</div><div class="ttdoc">IO config mode. </div><div class="ttdef"><b>Definition:</b> cy_ipc_bt.h:616</div></div>
</div><!-- fragment -->
<p>Is rotvec mode valid. </p>

</div>
</div>
<a id="gabd3fd754ccac8d4245343297acd97490"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd3fd754ccac8d4245343297acd97490">&#9670;&nbsp;</a></span>CY_CORDIC_IS_CIRCULAR_ROTATION_ANGLE_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_CIRCULAR_ROTATION_ANGLE_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">angle</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((-(4646111)) &lt;= (angle &gt;&gt; 8)) &amp;&amp; \</div><div class="line">                                                                       ((angle &gt;&gt; 8) &lt;= (4646111)))</div></div><!-- fragment -->
<p>In circular function, |angle_in_radians| is less than or equal to integer value representing 1.74 radians; The 1.74 angle in radians is mapped to the integer value(4646111) using: ((angle * ((2^23)/pi)) &lt;&lt; 8) </p>

</div>
</div>
<a id="ga6c3a51ad503bc0d06d194d8f0d3d2674"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6c3a51ad503bc0d06d194d8f0d3d2674">&#9670;&nbsp;</a></span>CY_CORDIC_IS_TAN_ANGLE_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_TAN_ANGLE_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">angle</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((-(1 &lt;&lt; 23) / 2) &lt;= (angle &gt;&gt; 8)) &amp;&amp; \</div><div class="line">                                                           ((angle &gt;&gt; 8) &lt;= (((1 &lt;&lt; 23) - 1) / 2)))</div></div><!-- fragment -->
<p>Angle range for Tangent operation [(-2^23) / 2, (2^23 - 1) / 2]. </p>

</div>
</div>
<a id="gace3e3619336e1eba61d6210a7a91eee9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gace3e3619336e1eba61d6210a7a91eee9">&#9670;&nbsp;</a></span>CY_CORDIC_IS_HYPERBOLIC_ROTATION_ANGLE_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_HYPERBOLIC_ROTATION_ANGLE_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">angle</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((-(2963898)) &lt;= (angle &gt;&gt; 8)) &amp;&amp; \</div><div class="line">                                                                       ((angle &gt;&gt; 8) &lt;= (2963898)))</div></div><!-- fragment -->
<p>In hyperbolic function, |angle_in_radians| is less than or equal to integer value representing 1.11 radians; The 1.11 angle in radians is mapped to the integer value(2963898) using: ((angle * ((2^23)/pi)) &lt;&lt; 8) </p>

</div>
</div>
<a id="gaf7a970e56dce2c05be16f28479829638"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf7a970e56dce2c05be16f28479829638">&#9670;&nbsp;</a></span>CY_CORDIC_IS_INPUT_VALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_CORDIC_IS_INPUT_VALID</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((-(1 &lt;&lt; 23)) &lt;= (x)) &amp;&amp; \</div><div class="line">                                                       ((x) &lt;= ((1 &lt;&lt; 23) - 1)))</div></div><!-- fragment -->
<p>Is input within the range [(-2^23), (2^23 - 1)] for vectoring mode operations. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
